package com.hongdee.scm.saleorder.service;

import com.hongdee.scm.invioce.entity.TCrmCarInvoice;
import com.hongdee.scm.saleorder.entity.TScmSaleOrder;

import java.util.List;
import java.util.Map;

/**
 * Created by Mr. Xu on 2017/5/14.
 */
public interface ITScmSaleOrderService {
    /**
     * 销售单分页
     *
     * @param data
     * @param start
     * @param limit
     * @param uid
     * @return
     * @throws Exception
     */
    public Map page(Map data, String start, String limit, String uid,String status) throws Exception;
    /**
     * 保存修改
     * @param data
     * @param uid
     * @return
     * @throws Exception
     */
    public void saveOrUpdate(TScmSaleOrder data, String uid) throws Exception;

    public void saveSaleOrder(Map data, String uid) throws Exception;
    /**
     * 销售单作废
     * @param uid
     * @param id
     * @throws Exception
     */
    public void saleOrderCancel (String uid,String id ) throws Exception;
    /**
         * 销售单详细
         * @param id
         * @param uid
         * @return
         * @throws Exception
         *
         */
        public Map info(String id, String uid) throws Exception;
    /**
     * 配车接口，待完善
     * @param data
     * @param uid
     * @return
     * @throws Exception
     */
    public Map configCar(TScmSaleOrder data,String uid) throws Exception;

    /**
     * 查询车辆成本（无发票取暂估金额，反之取发票金额）
     * @param vin
     * @param uid
     * @return
     * @throws Exception
     */
    public Map carCost(String vin ,String uid) throws Exception;

    public List carCostMore(String[] vins , String uid) throws Exception;

    /**
     * 保存到销售单表
     * @param data
     * @return
     */
    public boolean createBySaleInvoice(TCrmCarInvoice data) throws Exception;

    public void ifCarIn(Map data,String uid) throws Exception;

    public Map infoCar(String id,String uid) throws Exception;
    //销售车辆管理
    public Map pageCar(Map data, String start, String limit, String uid) throws Exception;

    public Map outPageCar(Map data,String start,String limit, String uid) throws Exception;


}
